package com.quartz.demo.service.impl;

import com.quartz.demo.service.HelloWordService;
import org.springframework.stereotype.Service;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author Lenovo-LQ
 */
@Service
public class HelloWorldServiceImpl implements HelloWordService {

    @Override
    public void batchSendData() {
        String strTime = new SimpleDateFormat("HH-mm-ss").format(new Date());
        System.out.println( strTime + ":Hello World！");
    }
}
